home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
GASCASH.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
405b
|
19 lines
' GASCASH.BAS
' This program uses a FOR loop to track weekly gasoline expenses.
CLS
PRINT "For each of the seven days of the week, enter the amount ";
PRINT "you spent on gasoline."
PRINT
FOR day% = 1 TO 7
PRINT " Cash spent on day"; day%;
INPUT "--> $", dayTotal!
weekTotal! = weekTotal! + dayTotal!
NEXT day%
PRINT
PRINT "Wow! $"; weekTotal!; "on gas in one week!"